package com.wanxi.test;

import java.util.ArrayList;
import java.util.List;

public class FanXing<A, B, C, D, F> {
    public static void main(String[] args) {
        new FanXing<>().aa(new ArrayList(), 1, 2, 3, 5);
        new FanXing<>().aa(new ArrayList(), "1", "2", "3", 5);
    }

    public List<F> aa(List list, A a, B b, C c, D d) {
        list.add(a);
        list.add(b);
        list.add(c);
        list.add(d);
        return list;

    }

    public <A> A add(A a, A b) {
        return a;
    }
    public int add(int a, int b) {
        return a + b;
    }

    public double add(double a, double b) {
        return a + b;
    }
}
